package com.lianzai.payment.service;

import com.lianzai.common.utils.R;
import com.lianzai.mobile.domain.PayOrderDto;
import com.lianzai.payment.domain.OrderInfoDO;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * 订单表表
 * 
 * @author zb
 * @email 1106900429@qq.com
 * @date 2018-10-29 10:50:29
 */
public interface OrderInfoService {
	
	OrderInfoDO get(Long orderId);
	
	List<OrderInfoDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(OrderInfoDO orderInfo);
	
	int update(OrderInfoDO orderInfo);
	
	int remove(Long orderId);
	
	int batchRemove(Long[] orderIds);

	R placeOrder(PayOrderDto payOrderDto) throws Exception;

	R provisionalOrder(PayOrderDto payOrderDto) throws Exception;

	R placeXiangparkOrder(PayOrderDto payOrderDto) throws Exception;

	R placeXiangparkTicketOrder(PayOrderDto payOrderDto) throws Exception;
}
